package xginxnsq

import (
	"gitee.com/xiaoyutab/xgotool/optional/xnsq"
	"gitee.com/xiaoyutab/xgotool/xgin"
	"github.com/gin-gonic/gin"
)

// 启动NSQ队列【根据配置的NSQ地址进行启动】
//
//	POST	stop
func stop(c *gin.Context) *xgin.Response {
	err := xnsq.Stop()
	if err != nil {
		return xgin.Resp().Error(err)
	}
	return xgin.Resp().SuccessEmpty()
}
